matplotlib set size

24

import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (20,3)
from matplotlib.pyplot import figure
figure(num=None, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k')
fig_width, fig_height = plt.gcf().get_size_inches()
print(fig_width, fig_height)

Comments

Submit
0 Comments